package com.ywgt.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 品牌商表
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dts_brand")
@ApiModel(value="Brand对象", description="品牌商表")
public class Brand implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "品牌商名称")
    private String name;

    @ApiModelProperty(value = "品牌商简介")
    @TableField(value = "`desc`")
    private String desc;

    @ApiModelProperty(value = "品牌商页的品牌商图片")
    private String picUrl;

    private Integer sortOrder;

    @ApiModelProperty(value = "品牌商的商品低价，仅用于页面展示")
    private BigDecimal floorPrice;


    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date addTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "分享二维码图片")
    private String shareUrl;

    @ApiModelProperty(value = "管理用户id")
    private Integer adminId;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;

    private String commpany;

    @ApiModelProperty(value = "自动监控更新商品")
    private Boolean autoUpdateGood;

    @ApiModelProperty(value = "店铺url地址")
    private String shopUrl;

    @ApiModelProperty(value = "默认的商品类别id")
    private Integer defaultCategoryId;

    @ApiModelProperty(value = "默认商品页面数")
    private Integer defaultPages;

    @ApiModelProperty(value = "店铺商品溢价")
    private Integer addPrecent;

    @ApiModelProperty(value = "提货地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度")
    private BigDecimal latitude;

    @ApiModelProperty(value = "提货时间配置")
    private String fetchTimeRules;


}
